A directive to MPs from party leaders to vote in a particular way in parliament, despite what the MP might believe or what his or her constituents might like.
(by extension) An imperative order.
I have to go shopping with the wife, I'm afraid. She's given me a three-line whip.